<template>
	<view class="active">
		<view class="conteng">
			<block v-for="(item,index) in clouddata" :key='index'>
				<view class="conteng-article">
					<view class="conteng-img" @click="xiangqin(item.id)">
						<block v-for="(itemimg,index) in item.datainfo.travelsIma" :key='index'>
							<image :src="itemimg" mode="aspectFill" v-if="index==0"></image>
						</block>
					</view>
					<view class="conteng-introduce">
						<view class="active-name">{{item.datainfo.biaotiOne}}</view>
						<view class="active-title">{{item.datainfo.biaotiTwo}}</view>
					</view>
					<view class="purchase">
						<image :src="item.datainfo.avatarUrl" mode="aspectFill"></image>
						<text class="active-buy">{{item.datainfo.nickName}}</text>
					</view>

				</view>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			clouddata:Array
		},
		data() {
			return {
				
			}
		},
		methods:{
			//拿到每个数据的id
			xiangqin(id){
				console.log(id)
				uni.navigateTo({
					url:'../detils/detils?id='+id
				})
			}
		}
	}
</script>

<style scoped>
	@import '../../../element/uni.css';
	
</style>
